import { ADD_COUNTER, ADD_CART } from './mutations-type'
export default {
    [ADD_COUNTER](state, playload) {
        playload.count++
            console.log('加入一个已存在商品', state)
    },
    [ADD_CART](state, playload) {
        state.cartList.push(playload)
        console.log('新加入商品', state)
    }
}